package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements java.io.Serializable {

    private ObjectId id; // 主键id
    private Long userId; // 发表用户id
    private String soundUrl; // 语音地址
    private Long created; // 创建时间
    private Integer reception = 0; // 是否被接收 0--为未接收 1--为已接收
}
